import agent from '../pages/Agent/model';

//公共服务
const builtin = [
];

//业务模块
export default builtin.concat([
    agent
]);

//其他副作用
const onAction = [

];

export const hooks = {
    // onStateChange: state => {
    //     if (state.loading.global) {
    //         showLoading();
    //     } else {
    //         hideLoading();
    //     }
    // },
    // 错误处理
};

export const merge = opt => {
    return {
        ...opt,
        ...hooks,
        onAction: (opt.onAction || []).concat(onAction)
    };
};

export const except = [

];
